package Web.Demo14;

import Web.Demo11.Loigndao;
import Web.Demo12.User;

public class Loignservice {
    //处理登录业务
    public void login(String username, String password) {
        //直接调用dao处理登录业务
        Loigndao loigndao = new Loigndao();
        User login = loigndao.login(username, password);
        if ("张三".equals(login.getUsername())){
            System.out.println("恭喜你登录成功");
        }else{
            System.out.println("尼玛");
        }
    }
}
